home *** CD-ROM | disk | FTP | other *** search
/ Aminet 4 / Aminet 4 - November 1994.iso / aminet / dev / c / restracklib_0_2.lha / ResTrackLib / openlibrary.c < prev    next >
C/C++ Source or Header  |  1994-07-31  |  851b  |  37 lines

  1. /* openlibrary.c */
  2.  
  3. #include <stdio.h>
  4. #include <clib/exec_protos.h>
  5. #ifdef REGARGS
  6. #   include <pragmas/exec_pragmas.h>
  7. #endif
  8.  
  9. #include "restrack_intern.h"
  10.  
  11. struct Library * __rtl_OpenLibrary (UBYTE * libName, ULONG version, const char * file, int line)
  12. {
  13.     struct Library * lib;
  14.  
  15.     if ( (lib = OpenLibrary (libName, version)) )
  16.     CHECK_ADD_RN(RTL_EXEC,RTLRT_OpenLibrary,lib,libName)
  17.  
  18.     return (lib);
  19. } /* __rtl_OpenLibrary */
  20.  
  21.  
  22. void __rtl_CloseLibrary (struct Library * library, const char * file, int line)
  23. {
  24.     ResourceNode * node;
  25.  
  26.     CHECK_REM_RN(library,RTLRT_OpenLibrary,CloseLibrary,CloseLibrary(library),
  27.         RTL_EXEC,"(%p)",library)
  28.  
  29. } /* __rtl_CloseLibrary */
  30.  
  31.  
  32. NRT_RET(struct Library *,OpenLibrary,(UBYTE * libName, ULONG version),(libName,version))
  33. NRT(CloseLibrary,(struct Library * library),(library))
  34.  
  35.  
  36. /* END openlibrary.c */
  37.